<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<LINK rel=stylesheet type=text/css href="images/style.css">
  <SCRIPT type=text/javascript>
window.onload = function() {
    SetFocus();
};
function SetFocus() {
    if (document.myform.AdminName.value == '') {
        document.myform.AdminName.focus();
    } else {
        document.myform.AdminName.select()
    }
}
function checkForm(formName) {
    if (formName.AdminName.value == '') {
        alert("请输入您的用户名！");
        formName.AdminName.focus();
        return false;
    }
    if (formName.PassWord.value == '') {
        alert("请输入您的密码！");
        formName.PassWord.focus();
        return false;
    }
   
}

function GetCheckCode() {
    var CodeUrl = '/Inc/GetCode.Asp';
    document.getElementById('imgcode').src = CodeUrl + '?n=' + Math.random();
}
</SCRIPT>
</HEAD>
<BODY>
<FORM onsubmit="return checkForm(this);" method=post name=myform 
action=user/login.do>
<DIV id=boodycom>
<DIV id=logintext></DIV>
<DIV id=loginbg>
<DIV class=login>
<DIV class=loginul>
<UL>
  <LI><LABEL>用户名：</LABEL> <INPUT class=number tabIndex=1 maxLength=20 type=text 
  name=name> </LI>
  <LI><LABEL>密　码：</LABEL> <INPUT class=Password tabIndex=2 maxLength=20 
  type=password name=password autocomplete="off"> </LI>
  </UL>
<DL><INPUT class=Landed value=提交 src="images/Landed.png" type=image> </DL></DIV></DIV>
<DIV class=Copyright>版权所有 lovo U09 项目小组</DIV></DIV></DIV></FORM>

</BODY>
</html>
